@import '~choerodon-ui/lib/style/themes/default';

body[data-theme="theme4"] {
  .product-lib-docker-taglist-line {
    top: -21px;
  }
}

.product-lib-org-management-mirror-list {
  overflow-x: hidden;
  height: ~'calc(100% - 75px)' !important;
  &-filter-form {
    margin-top: 0.1rem;
    &-btn {
      color: @primary-color;
    }
  }
  .@{c7n-pro-prefix}-form-float-label .@{c7n-pro-prefix}-field-wrapper {
      margin: 0.07rem 0 0 0;
    }
  &-pagination {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-top: 8px;
  }
  &-render-dropdown-column {
    display: flex;
    justify-content: space-between;
    &-text {
      // width: ~'calc(100% - 32px)';
      color: #000;
      overflow: hidden;
      text-overflow: ellipsis;
      &:hover {
        text-decoration: underline;
        cursor: pointer;
        color: @primary-color;
      }
    }
  }
  // 时间线样式
&-list {
  width: 100%;
  &-split-line {
    height: 0.01rem;
    margin-left: 0.22rem;
    background-image: linear-gradient(to right, rgba(216, 220, 235, 0.2), rgba(216, 220, 235, 1));
  }
  &-body {
    ul {
      padding-left: 0;
      li {
        list-style: none;
        position: relative;
        display: flex;
        margin-top: 0.12rem;
      }
    }
  }
  &-card {
    height: auto;
    flex: 1;
    background: rgba(250, 250, 250, 1);
    border-radius: 0.04rem;
    padding: 0.10rem 0.16rem;
    &-header {
      &-icon {
        i.icon {
          cursor: pointer;
          font-size: 0.15rem;
          margin-left: 0.07rem;
          color: rgba(104, 135, 232, 1);
        }
      }
      &-project {
        display: flex;
        margin-top: 0.02rem;
        &-name {
          font-size: 0.13rem;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: rgba(0, 0, 0, 0.65);
          line-height: 0.18rem;
        }
      }
      &-btn {
          float: right;
          text-align: center;
          font-size: 0.13rem;
          display: flex;
          justify-content: flex-end;
        &-guide {
          width: 0.76rem;
          height: 0.22rem;
          cursor: pointer;
          background: rgba(104, 135, 232, 0.08);
          border-radius: 0.04rem;
          border: 0.01rem solid rgba(104, 135, 232, 1);
          color: rgba(104, 135, 232, 1);
          margin-right: 0.12rem;
        }
        &-delete {
          width: 0.76rem;
          height: 0.22rem;
          cursor: pointer;
          background: rgba(247, 122, 112, 0.08);
          border-radius: 0.04rem;
          border: 0.01rem solid rgba(247, 122, 112, 1);
          color: rgba(247, 122, 112, 1);
        }
      }
      &-title {
        font-size: 0.15rem;
        font-weight: 500;
        color: rgba(0, 0, 0, 1);
        line-height: 0.21rem;
        &:hover {
          color: @primary-color;
          text-decoration: underline;
          cursor: pointer;
        }
      }
    }
    &-footer {
      font-size: 0.12rem;
      margin-top: 0.12rem;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: rgba(0, 0, 0, 0.54);
      &-text {
        color: rgba(0, 0, 0, 1);
      }
      &-date {
        display: flex;
        span {
          font-size: 0.13rem;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: rgba(58, 52, 95, 1);
          line-height: 0.18rem;
        }
      }
      i.icon {
        font-size: 0.17rem;
        margin-right: 0.05rem;
        color: rgba(0, 0, 0, 0.42);
      }
      &-btn {
        cursor: pointer;
        text-align: right;
        font-size: 0.13rem;
        font-weight: 500;
        color: @primary-color;
        line-height: 0.15rem;
        i.icon {
          color: @primary-color;
          margin-right: 0;
        }
      }
      &-action {
        i.icon {
          font-size: 0.17rem;
          margin-right: 0.05rem;
          margin-bottom: 0.02rem;
          color: rgba(0, 0, 0, 1) !important;
        }
      }
    }
  }
  &-no-content {
    height: 0.80rem;
    color: rgba(0, 0, 0, 0.65);
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    background: #fafafa;
    border-radius: 0.04rem;
    padding: 0.10rem 0.20rem;
    text-align: center;
    line-height: 0.60rem;
    margin-top: 0.10rem;
  }
}
&-status {
    width: .08rem;
    height: .08rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.05rem;

    &-online {
      background: #00bfa5;
    }

    &-offline {
      background: #e3e3e3;
    }
  }
}

.product-lib-org-management-mirror-list-guide-modal {
    .@{c7n-pro-prefix}-table-tbody {
      color: rgba(0, 0, 0, 0.65);
    }
    &-click-table-name {
      color: #000;
      line-height: .20rem;
      // margin-left: .08rem;

      &:hover {
        color: @primary-color;
        text-decoration: underline;
        cursor: pointer;
      }
      .@{c7n-pro-prefix}-table-filter-select {
        border-top: none !important;
      }
    }
  }

.product-lib-org-management-docker {
  &-image-tag-digest-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  &-image-tag-digest {
    .@{c7n-prefix}-tooltip-inner {
      max-width: 5rem;
    }
  }
}

.product-lib-org-docker-img-tag-buildlog-modal {
  .c7n-pro-modal-body {
    height: 100%;
    .CodeMirror {
      height: 100%;
    }

    .c7n-podLog-action {
      right: 0;
      bottom: 1px;
      position: absolute;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 95px;
      height: 32px;
      color: rgba(63, 81, 181, 1);
      line-height: 15px;
      background: rgba(255, 255, 255, 0.6);
      box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.12),
        0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.2);
    }
  }
}

.product-lib-docker-taglist {
  &-table {
    .c7n-pro-table-expanded-row {
      .c7n-pro-table-cell {
        background: unset !important;
        &-inner {
          box-shadow: 0px 6px 8px -6px rgba(15, 19, 88, 0.24);
          border-radius: 0px 0px 4px 4px;
        }
      }
    }
  }
  &-line {
    position: absolute;
    height: 100%;
    width: 1px;
    z-index: 999;
    left: 13px;
    top: -13px;
    background: rgba(217, 230, 242, 1);
  }
  &-subTable {
    width: 100%;
    border-collapse: collapse !important;
    &-dot {
      position: absolute;
      left: -37px;
      top: 18px;
      display: flex;
      align-items: center;
      span {
        display: block;
        &:first-of-type {
          background: rgba(217, 230, 242, 1);
          width: 23px;
          height: 1px;
        }
        &:nth-of-type(2) {
          width: 5px;
          height: 5px;
          background: #5365ea;
          border-radius: 50%;
        }
      }
    }
    &Container {
      position: relative;
      padding-left: 50px;
    }

    &-header {
      border-bottom: 1px solid rgba(206, 220, 235, 1);
    }
    td {
      position: relative;
      font-size: 13px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: rgba(15, 19, 88, 0.65);
    }
    th {
      font-size: 12px;
      font-family: PingFangSC-Medium, PingFang SC;
      // font-weight: 500;
      color: #0f1358;
    }
  }
  &-search {
    width: 260px;
    .c7n-pro-field-wrapper {
      margin: 0px 0 20px;
    }
  }
  &-table {
    .c7n-pro-table-expanded-row {
      .c7n-pro-table-cell {
        background: unset !important;
        &-inner {
          box-shadow: 0px 6px 8px -6px rgba(15, 19, 88, 0.24);
          border-radius: 0px 0px 4px 4px;
        }
      }
    }
  }
}


.c7ncd-mirrorScanning-table {
  .c7n-pro-table-expanded-row {
    .c7n-pro-table-cell {
      background: unset !important;
      &-inner {
        padding-left: 0.26rem;
        box-shadow: 0px 6px 8px -6px rgba(15, 19, 88, 0.24);
        border-radius: 0px 0px 4px 4px;
      }
    }
  }
  .c7n-pro-table-expanded-row > td {
    background-color: unset !important;
  }
  &-describe {
    font-size: 13px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: rgba(15, 19, 88, 0.65);
    line-height: 20px;
    background: #fff;
    padding: 16px 36px 16px 0;
    p > {
      white-space: break-spaces;
      margin: 0;
    }
  }
}